﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:jacDigitalDrum" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:wfs="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    x:Class="jacDigitalDrum.Window1"
    Title="JacDrum" Height="480" Width="640" mc:Ignorable="d">
    <Grid>
        <wfs:WindowsFormsHost x:Name="fh" Width="0" Height="0" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
        <TabControl IsSynchronizedWithCurrentItem="True">
        	<TabItem Header="设置" FontSize="14">
        		<Grid>
        			<TextBlock HorizontalAlignment="Left" Margin="38,45.163,0,0" VerticalAlignment="Top" Width="66" Height="21" Text="硬件型号" TextWrapping="Wrap" Foreground="#FFFFFFFF"/>
        			<ComboBox x:Name="cbo_model" HorizontalAlignment="Left" Margin="108,43.163,0,0" VerticalAlignment="Top" Width="200" Height="25" IsSynchronizedWithCurrentItem="True">
        				<ComboBoxItem Content="J-106" IsSelected="True" Tag="6"/>
        				<ComboBoxItem Content="J-108" Tag="8"/>
        			</ComboBox>
        			<TextBlock HorizontalAlignment="Left" Margin="36,94.163,0,0" VerticalAlignment="Top" Width="68" Height="21" Text="连接端口" TextWrapping="Wrap" Foreground="#FFFFFFFF"/>
        			<ComboBox x:Name="cbo_com" HorizontalAlignment="Left" Margin="108,95.163,0,0" VerticalAlignment="Top" Width="200" Height="25" IsSynchronizedWithCurrentItem="True">
        				<ComboBoxItem Content="COM3"/>
        				<ComboBoxItem Content="COM4" IsSelected="True"/>
        				<ComboBoxItem Content="COM5"/>
        			</ComboBox>
        			<Button x:Name="bt_set" HorizontalAlignment="Stretch" Margin="108,148.163,429,210" Content="设定" VerticalAlignment="Stretch"/>
        		</Grid>
        	</TabItem>
        	<TabItem Header="实时鼓组" FontSize="14">
        		<Grid>
        			<ListBox x:Name="lb_list" HorizontalAlignment="Left" Margin="6,8,0,36.161" Width="156" IsSynchronizedWithCurrentItem="True"/>
        			<local:playControl x:Name="s1" VerticalAlignment="Top" d:LayoutOverrides="Width" Margin="166,8,240,0"/>
        			<local:playControl x:Name="s2" Margin="0,8,8,0" VerticalAlignment="Top" HorizontalAlignment="Right"/>
        			<local:playControl x:Name="s3" Margin="166,124,240,152.162" d:LayoutOverrides="Width, Height"/>
        			<local:playControl x:Name="s4" Margin="0,124,8,152.161" HorizontalAlignment="Right" d:LayoutOverrides="Height"/>
        			<local:playControl x:Name="s5" Margin="170,0,236,36.161" VerticalAlignment="Bottom" d:LayoutOverrides="Width"/>
        			<local:playControl x:Name="s6" Margin="0,0,8,36.16" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
                    <Button Height="23" HorizontalAlignment="Left" Margin="6,0,0,7" Name="bt_refresh" VerticalAlignment="Bottom" Width="75">刷新</Button>
                    <Button Height="23" HorizontalAlignment="Left" Margin="87,0,0,7" Name="bt_del" VerticalAlignment="Bottom" Width="75">删除</Button>
                </Grid>
        	</TabItem>
        	<TabItem Header="自定义鼓组" FontSize="14">
        		<Grid>
        			<local:Jitem x:Name="n6" HorizontalAlignment="Right" d:LayoutOverrides="HorizontalAlignment, Width" Margin="0,168.18,-2,139.343"/>
        			<TextBlock HorizontalAlignment="Left" Margin="16,20,0,0" VerticalAlignment="Top" Width="56" Height="20" Text="鼓组命名" TextWrapping="Wrap" Foreground="#FFFFFFFF"/>
        			<TextBox x:Name="tb_Name" HorizontalAlignment="Left" Margin="76,20,0,0" VerticalAlignment="Top" Width="167" Height="23" TextWrapping="Wrap"/>
        			<local:Jitem x:Name="n2" Margin="212,64.18,202,0" VerticalAlignment="Top"/>
        			<local:Jitem x:Name="n3" HorizontalAlignment="Right" Margin="0,64.18,-2,0" d:LayoutOverrides="HorizontalAlignment, Width" VerticalAlignment="Top"/>
        			<local:Jitem x:Name="n4" Margin="8,168.18,0,139.343" d:LayoutOverrides="Width" HorizontalAlignment="Left"/>
        			<local:Jitem x:Name="n5" Margin="212,168.18,202,139.343"/>
        			<local:Jitem x:Name="n1" HorizontalAlignment="Left" Margin="8,64.18,0,0" VerticalAlignment="Top" Height="100" Width="200"/>
        			<Button x:Name="bt_edit" Margin="247,20,291,0" VerticalAlignment="Top" Height="23" Content="保存"/>
        		</Grid>
        	</TabItem>
        	<TabItem Header="关于">
        		<Grid>
        			<TextBlock Margin="248,144.523,261,0" VerticalAlignment="Top" Height="39" TextWrapping="Wrap" Foreground="#FFFFFFFF"><Run Text="作者：黎东海"/><LineBreak/><Run Text="QQ:229292620"/></TextBlock>
        			<Button x:Name="bt_to" Margin="187,0,208,157" Content="访问作者博客" Height="46" VerticalAlignment="Bottom"/>
        		</Grid>
        	</TabItem>
        </TabControl>
    </Grid>
</Window>
